package com.android.sms.activity;

import android.content.Context;
import android.content.Intent;
import android.view.View;
import android.view.View.OnClickListener;

public class BackListener implements OnClickListener {

	private Context context;
	private Class<?> cls;

	public BackListener(Context context, Class<?> cls) {
		this.context = context;
		this.cls = cls;
	}

	@Override
	public void onClick(View v) {
		Intent intent = new Intent();
		intent.setClass(context, cls);
		context.startActivity(intent);
	}

}
